home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / python-apt / text / aptsources / distro.txt < prev    next >
Encoding:
Text File  |  2009-03-30  |  2.0 KB  |  72 lines

  1.  
  2. ``aptsources.distro`` --- Distribution abstraction of the sources.list
  3. **********************************************************************
  4.  
  5. Note: This part of the documentation is created automatically.
  6.  
  7. class aptsources.distro.DebianDistribution(id, codename, description, release)
  8.  
  9.    Class to support specific Debian features
  10.  
  11.    get_mirrors()
  12.  
  13.    is_codename(name)
  14.  
  15.       Compare a given name with the release codename and check if if
  16.       it can be used as a synonym for a development releases
  17.  
  18. class aptsources.distro.Distribution(id, codename, description, release)
  19.  
  20.    add_source(type=None, uri=None, dist=None, comps=None, comment='')
  21.  
  22.       Add distribution specific sources
  23.  
  24.    change_server(uri)
  25.  
  26.       Change the server of all distro specific sources to a given host
  27.  
  28.    disable_component(comp)
  29.  
  30.       Disable a component in all main, child and source code sources
  31.       (excluding cdrom based sources)
  32.  
  33.    enable_component(comp)
  34.  
  35.       Enable a component in all main, child and source code sources
  36.       (excluding cdrom based sources)
  37.  
  38.       comp:         the component that should be enabled
  39.  
  40.    get_mirrors(mirror_template=None)
  41.  
  42.       Provide a set of mirrors where you can get the distribution from
  43.  
  44.    get_server_list()
  45.  
  46.       Return a list of used and suggested servers
  47.  
  48.    get_sources(sourceslist)
  49.  
  50.       Find the corresponding template, main and child sources for the
  51.       distribution
  52.  
  53.    is_codename(name)
  54.  
  55.       Compare a given name with the release codename.
  56.  
  57. exception aptsources.distro.NoDistroTemplateException
  58.  
  59. class aptsources.distro.UbuntuDistribution(id, codename, description, release)
  60.  
  61.    Class to support specific Ubuntu features
  62.  
  63.    get_mirrors()
  64.  
  65. aptsources.distro.get_distro(id=None, codename=None, description=None, release=None)
  66.  
  67.    Check the currently used distribution and return the corresponding
  68.    distriubtion class that supports distro specific features.
  69.  
  70.    If no paramter are given the distro will be auto detected via a
  71.    call to lsb-release
  72.